package com.cdz.service;

import com.cdz.commen.R;
import com.cdz.domain.Firmware;
import com.cdz.form.InitBleForm;
import com.cdz.form.OneDataForm;
import com.cdz.form.UpdateForm;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;


public interface OtaService {
    ResponseEntity<String> uploadAllFile(MultipartFile file);

    Iterable<Firmware> getBinAll();

    R<?> transferBin(String chargingPileId);

    R<?> ifUpdate(String chargingPileId);

    R<?> setUpdate0(UpdateForm updateForm);

    R<?> updateOneFile(OneDataForm oneDataForm) throws IOException;

    R<?> getMaintenanceInfo();

//    R<?> setUpdate1();
}
